package com.enjoyor.soa.traffic.api.dto.vcsp;

import java.io.Serializable;

import com.enjoyor.soa.traffic.util.bean.base.ABean;

/**
 * 异常报警记录实体类
 */
public class FaultInfoDto implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 异常记录编号
     */
    private String fault_id;
    /**
     * 代理服务编号
     */
    private String proxy_id;
    /**
     * 代理服务名称
     */
    private String proxy_name;
    /**
     * 代理服务ip
     */
    private String proxy_ip;
    /**
     * 类型
     */
    private String proxy_type;

    private String proxy_type_name;
    /**
     * 异常类型
     */
    private String fault_type;

    private String fault_type_name;
    /**
     * 异常报警内容
     */
    private String fault_content;
    /**
     * 记录时间
     */
    private String record_time;

    private String recovery_time;
    /**
     * 数量统计
     */
    private int count;

    public String getFault_id() {
        return fault_id;
    }

    public void setFault_id(String fault_id) {
        this.fault_id = fault_id;
    }

    public String getProxy_id() {
        return proxy_id;
    }

    public void setProxy_id(String proxy_id) {
        this.proxy_id = proxy_id;
    }

    public String getFault_type() {
        return fault_type;
    }

    public void setFault_type(String fault_type) {
        this.fault_type = fault_type;
    }

    public String getFault_content() {
        return fault_content;
    }

    public void setFault_content(String fault_content) {
        this.fault_content = fault_content;
    }

    public String getRecord_time() {
        return record_time;
    }

    public void setRecord_time(String record_time) {
        this.record_time = record_time;
    }

    public String getProxy_name() {
        return proxy_name;
    }

    public void setProxy_name(String proxy_name) {
        this.proxy_name = proxy_name;
    }

    public String getProxy_ip() {
        return proxy_ip;
    }

    public void setProxy_ip(String proxy_ip) {
        this.proxy_ip = proxy_ip;
    }

    public String getProxy_type() {
        return proxy_type;
    }

    public void setProxy_type(String proxy_type) {
        this.proxy_type = proxy_type;
        if (this.proxy_type != null) {
            switch (this.proxy_type) {
                case "01":
                    this.proxy_type_name = "抽取服务器";
                    break;
                case "02":
                    this.proxy_type_name = "中心服务器";
                    break;
            }
        }
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getRecovery_time() {
        return recovery_time;
    }

    public void setRecovery_time(String recovery_time) {
        this.recovery_time = recovery_time;
    }


    public String getProxy_type_name() {
        return proxy_type_name;
    }

    public void setProxy_type_name(String proxy_type_name) {
        this.proxy_type_name = proxy_type_name;
    }

    public String getFault_type_name() {
        return fault_type_name;
    }

    public void setFault_type_name(String fault_type_name) {
        this.fault_type_name = fault_type_name;
    }
}
